﻿<%@ Page Language="C#" AutoEventWireup="true"  MasterPageFile="~/Popup.Master"  CodeBehind="Popup_Sequence.aspx.cs"
    Inherits="VSM.Popup_Sequence" %>
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <script type="text/javascript" src="/js/jquery-1.4.3.min.js"></script>
    <script type="text/javascript" src="/js/main.js"></script>
   

    <script type="text/javascript">
        function RefreshUpdatePanel() {

        };

        function disablePopup(sender, evt) {

            var charCode = (evt.which) ? evt.which : event.keyCode;
            if (charCode == 13)
                return true;

            return false;
        }
    </script>
    
 <div style="height:600px; overflow:scroll;">
 
    <asp:UpdatePanel ID="editItemUpdatePanel" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="True">       
        <ContentTemplate>
            <span class="style1">Sequence Number Setting Up</span><br />
            <table border="0" width="100%">
            <tr>
                <td class="style2">
                    <asp:Button ID="btn_Save" runat="server" BackColor="#1B7FC2" 
                        ForeColor="#FFFFFF" Height="30px" 
                        Text="Save" Width="90px" onclick="btn_Save_Click" />

                    <asp:Button ID="btn_Cancel" runat="server" BackColor="#1B7FC2" 
                        ForeColor="#FFFFFF" Height="30px" OnClientClick="return Main.cancelDialogClick()" 
                        Text="Close" Width="90px" />
                    <asp:Label ID="lb_Message" runat="server" Text="[]"></asp:Label>
                </td>
            </tr>
                <tr>
                    <td class="FormLineItem">
                                &nbsp;</td>
                </tr>
            </table>
            <table border="0" width="100%">
                <asp:GridView ID="gvLabour" CssClass="GridInner" runat="server" Width="100%" BorderColor="White"
                            BackColor="White" AllowSorting="True" AutoGenerateColumns="False" CellPadding="2"
                            HeaderStyle-Height="27px" CellSpacing="2" 
                             HeaderStyle-VerticalAlign="Middle">
                            <PagerSettings Mode="NumericFirstLast" />
                            <PagerStyle BackColor="#70A0D0" Font-Bold="True" HorizontalAlign="Center" VerticalAlign="Middle" />
                            <RowStyle BackColor="#D9E0ED" BorderColor="White" BorderWidth="2px" Height="25px" />
                            <AlternatingRowStyle BackColor="#EEF1F7" BorderColor="White" BorderWidth="2px" />
                            <Columns>
                                <asp:CommandField HeaderText="Action" ShowDeleteButton="True" ShowEditButton="False"
                                    Visible="false" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"
                                    ItemStyle-Width="70px" />
                                
                                <asp:TemplateField HeaderText="#">
                                    <ItemStyle HorizontalAlign="Center" Width="20px" />
                                    <HeaderStyle VerticalAlign="Middle" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblNo" runat="server" Text='<%# Bind("RowNum") %>' BorderStyle="none">
                                        </asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                
                                <asp:TemplateField HeaderText="Dealer Code">
                                    <ItemStyle HorizontalAlign="Left" Width="100px" />
                                    <HeaderStyle VerticalAlign="Middle" Font-Bold="true" />
                                    <ItemTemplate>
                                        <asp:Label ID="lb_DealerCode" runat="server" Text='<%# Bind("DealerCode") %>' Width="97%" AutoPostBack="true" ></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                
                                 <asp:TemplateField HeaderText="Dealer Name">
                                    <ItemStyle HorizontalAlign="Left" Width="180px"  />
                                    <HeaderStyle VerticalAlign="Middle" Font-Bold="true"/>
                                    <ItemTemplate>
                                        <asp:Label ID="lb_DealerName" runat="server" Text='<%# Bind("DealerName") %>' Width="97%"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Sequence">
                                    <HeaderStyle VerticalAlign="Middle" />
                                    <ItemStyle HorizontalAlign="Right" Width="70px" />
                                    <ItemTemplate>
                                         <asp:TextBox ID="txt_Sequence" Style="text-align: right" runat="server"  Text='<%# Bind("Sequence") %>' Width="97%"></asp:TextBox>
                                       <%-- <asp:Label ID="txtQty" runat="server" Style="text-align: right" Width="97%" Text='<%# String.Format("{0,-15:#,##0.00}", Eval("Quantity")) %>'
                                            AutoPostBack="true" OnKeyPress="return isNumberKey(this, event);" />--%>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Modified Date">
                                    <HeaderStyle VerticalAlign="Middle" />
                                    <ItemStyle HorizontalAlign="Right" Width="70px" />
                                    <ItemTemplate>
                                         <asp:Label ID="lb_ModDate" Style="text-align: right" runat="server"  Text='<%# Bind("UpdatedDate") %>' Width="97%"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                 
                            </Columns>
                            <HeaderStyle BackColor="#6095C9" Font-Bold="true" ForeColor="#ffffff" Font-Overline="False"
                                Height="27px" VerticalAlign="Bottom" />
                        </asp:GridView>        
            </table>
        </ContentTemplate>

    </asp:UpdatePanel>
        </div>
</asp:Content>

